import request from '@/utils/request'

// 查询采购员信息：关联采购订单指派列表
export function listPurchaser(query) {
  return request({
    url: '/purchase/purchaser/list',
    method: 'get',
    params: query
  })
}

// 查询采购员信息：关联采购订单指派详细
export function getPurchaser(id) {
  return request({
    url: '/purchase/purchaser/' + id,
    method: 'get'
  })
}

// 新增采购员信息：关联采购订单指派
export function addPurchaser(data) {
  return request({
    url: '/purchase/purchaser',
    method: 'post',
    data: data
  })
}

// 修改采购员信息：关联采购订单指派
export function updatePurchaser(data) {
  return request({
    url: '/purchase/purchaser',
    method: 'put',
    data: data
  })
}

// 删除采购员信息：关联采购订单指派
export function delPurchaser(id) {
  return request({
    url: '/purchase/purchaser/' + id,
    method: 'delete'
  })
}
